import ContextTodo from '../../../../src/store/contextTodo' 
import {useContext} from 'react'
const ContextChild2=()=>{
  const context = useContext(ContextTodo)
  return (
    <div>
       <button
          onClick={
            ()=>context.updateList(
              {title:"hahaha",level:2}
            )
          }
        >
            添加一条todo
        </button>
    </div>
  )
}
export default ContextChild2